﻿<Window x:Class="CPPEI.Coolzon.Designer.Views.CreateSolutionView"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:CPPEI.Coolzon.Designer.Views"
        xmlns:ui="clr-namespace:CPPEI.Coolzon.UI;assembly=CPPEI.Coolzon.UI"
        mc:Ignorable="d"
        Title="创建方案" MinHeight="330" Height="330" MinWidth="300" Width="300" Loaded="Window_Loaded" WindowStartupLocation="CenterScreen" Closing="Window_Closing"
             Style="{DynamicResource WindowStyle}">
    <Border BorderThickness="1" BorderBrush="Gray">
        <Grid >
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="59*"/>
                <ColumnDefinition Width="231*"/>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
                <RowDefinition Height="*"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid Grid.Row="0" Grid.ColumnSpan="2" Margin="0,10,0,0.5">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="Auto"/>
                    <ColumnDefinition Width="*"/>
                </Grid.ColumnDefinitions>
                <TextBlock Grid.Column="0" Grid.Row="0" Margin="0,8,0,0" Text="名称:" HorizontalAlignment="Right"></TextBlock>
                <ui:NameTextbox Name="tbName" Grid.Column="1" Grid.Row="0" Margin="5" Text="方案1" Style="{DynamicResource {x:Type TextBox}}" ></ui:NameTextbox>
                <TextBlock Grid.Column="0" Grid.Row="1" Margin="0,8,0,0" Text="描述:" HorizontalAlignment="Right"></TextBlock>
                <TextBox Name="tbCaption" Grid.Column="1" Grid.Row="1" Margin="5" Text="方案1" ></TextBox>
                <TextBlock Grid.Column="0" Grid.Row="2" Margin="0,8,0,0" Text="类型:" HorizontalAlignment="Right"></TextBlock>
                <ComboBox Name="tbType" Grid.Column="1" Grid.Row="2" Margin="5">
                </ComboBox>
                <TextBlock Grid.Column="0" Grid.Row="3" Margin="0,8,0,05" Text="版本:" HorizontalAlignment="Right"></TextBlock>
                <TextBox Name="tbVersion" Grid.Column="1" Grid.Row="3" Margin="5" Text="1.0"></TextBox>
                <TextBlock Grid.Column="0" Grid.Row="4" Margin="0,8,0,0" Text="运行时版本:" HorizontalAlignment="Right"></TextBlock>
                <TextBox Name="tbRTVersion" Grid.Column="1" Grid.Row="4" Margin="5" Text="1.0"></TextBox>
                <TextBlock Grid.Column="0" Grid.Row="5" Margin="0,8,0,0" Text="宽度:" HorizontalAlignment="Right"></TextBlock>
                <TextBox Name="tbWidth" Grid.Column="1" Grid.Row="5" Margin="5" Text="9600"></TextBox>
                <TextBlock Grid.Column="0" Grid.Row="6" Margin="0,8,0,0" Text="高度:" HorizontalAlignment="Right"></TextBlock>
                <TextBox Name="tbHeight" Grid.Column="1" Grid.Row="6" Margin="5" Text="1200"></TextBox>
            </Grid>
            <Grid Grid.Row="1" Margin="5,5.5" Grid.ColumnSpan="2">
                <StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
                    <Button Style="{DynamicResource SubmitOrCancelButtonStyle}"  Content="确 定" Margin="0,0,20,0" Click="Button_Click" Height="Auto"/>
                    <Button Style="{DynamicResource SubmitOrCancelButtonStyle}"   Name="cancel" Content="取 消" Margin="20,0,0,0" Click="cancel_Click"></Button>
                </StackPanel>
            </Grid>
        </Grid>
    </Border>
</Window>

